package com.markus.basic.Java比较器;

import java.util.Comparator;

/**
 * Author:markusZhang
 * Date:Create in 2020/9/12 23:12
 * todo:
 */
public class ComparatorDemo implements Comparator<Integer> {

    @Override
    public int compare(Integer o1, Integer o2) {
        return -(o1-o2);
    }
}
